package com.yxy.model;



import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_store",schema = "")
public class TableStore {

  //id
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //门店编码
  @Column(name = "store_code")
  private String storeCode;

  //门店名称
  @Column(name = "store_name")
  private String storeName;

  //门店区域
  @Column(name = "area_name")
  private String areaName;

  //门店详细地址
  @Column(name = "address")
  private String address;

  //门店区域编码
  @Column(name = "area_code")
  private String areaCode;

  //联系电话
  @Column(name = "link_tel")
  private String linkTel;

  //联系人
  @Column(name = "link_people")
  private String linkPeople;

  //是否开业1是开业    2是不开业
  @Column(name = "is_open")
  private Long isOpen;

  //标记数据状态 0 不显示 1显示
  @Column(name = "status")
  private Long status;

  //数据备注
  @Column(name = "misc")
  private String misc;

  //创建者id
  @Column(name = "create_user_id")
  private Long createUserId;

  //创建人姓名
  @Column(name = "create_user_name")
  private String createUserName;

  //创建时间
  @Column(name = "create_date")
  private Date createDate;

  //修改人id
  @Column(name = "update_user_id")
  private Long updateUserId;

  //修改人姓名
  @Column(name = "update_user_name")
  private String updateUserName;

  //更新时间
  @Column(name = "update_date")
  private Date updateDate;

  //varchar预留字段1
  @Column(name = "param1")
  private String param1;

   //门店logo
  @Column(name = "store_logo")
  private String storeLogo;

  //门店图片
  @Column(name = "store_image")
  private String storeImage;

  //门店业务描述
  @Column(name = "store_business")
  private String storeBusiness;

  //预留字段2
  @Column(name = "param2")
  private Long param2;

  //预留字段3
  @Column(name = "param3")
  private BigDecimal param3;

  //门店经度
  @Column(name = "store_longitude")
  private String storeLongitude;

  //门店纬度
  @Column(name = "store_latitude")
  private String storeLatitude;





}
